package de.baumann.browser.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import de.baumann.browser.OdinGlideModule;
import de.baumann.browser.R;
import de.baumann.browser.api.net.vo.JoinApp;

@Deprecated
public class RequestJoinListAdapter extends BaseQuickAdapter<JoinApp, BaseViewHolder> {

    public RequestJoinListAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, JoinApp item) {
        ImageView ivJoinerHead = helper.getView(R.id.ivJoinerHead);
        OdinGlideModule.loadWithCropAndCircle(mContext, item.getAvatar(), ivJoinerHead, R.drawable.icon_head);
        helper.setText(R.id.tvJoinName, item.getTitle());
        helper.setText(R.id.tvJoinTime, item.getApplicationTime());
        helper.setText(R.id.tvJoinStatus, item.getApplyStatus());
    }
}
